// 代理环境
// 配置信息
module.exports = {
  publicPath: "/oppo-mail/",
  outputDir: "dist",
  lintOnSave: true,
  runtimeCompiler: true,
  transpileDependencies: [
    /* string or regex */
  ],
  productionSourceMap: false,
  chainWebpack: () => {},
  configureWebpack: {
    //注意线上环境要注释掉！
    // devtool: 'source-map' //用于chrome端调试vue代码
  },
  // css: {
  //   extract: true,
  //   sourceMap: false,
  //   loaderOptions: {},
  //   requireModuleExtension: false
  // },
  parallel: require("os").cpus().length > 1,
  pwa: {},
  devServer: {
    open: true,
    disableHostCheck: true,
    host: "0.0.0.0",
    port: process.env.VUE_APP_PORT,
    https: true,
    hotOnly: false,
    compress: true,
    proxy: {
      "/mail-office365-exchange": {
        //   target:'http://172.20.200.222:18966/',
        // target: 'http://vankereport.natapp1.cc',
        // target: "http://10.18.20.202:8081/", //lixiao

        // target: "http://10.18.26.36:8081/", //wf
        target: "https://mtp-test.myoas.com/", //测试环境
        // target: "https://mtp.myoas.com/",//正式环境
        // target: "http://172.16.218.20:11251/",
        changeOrigin: true,
      },
    },
    // proxy: {      "/mail-office365-exchange": { //oppo-mail-service
  },
};
